//
//  HomeCycleModel.m
//  Rail
//
//  Created by hychen on 2018/3/10.
//  Copyright © 2018年 Hychen. All rights reserved.
//

#import "HomeCycleModel.h"

@implementation NewsModel
MJCodingImplementation
@end


@implementation NewsDirModel
MJCodingImplementation
+ (NSDictionary *)mj_objectClassInArray {
    return @{@"list":[NewsModel class]};
}
@end

@implementation WarnModel
MJCodingImplementation
@end

@implementation WorkAreaModel
MJCodingImplementation

- (BOOL)is_fav {
    if ([self.favid isKindOfClass:[NSString class]] && self.favid.length > 0 && ![self.favid isEqualToString:@"0"]) {
        return YES;
    }
    return NO;
}
@end

@implementation NoticeModel
MJCodingImplementation
@end

@implementation HomeCycleModel
MJCodingImplementation
@end

@implementation HomeVideoHistoryModel
MJCodingImplementation
@end

@implementation HomeDataModel
MJCodingImplementation
+ (NSDictionary *)mj_objectClassInArray {
    return @{
             @"image_list":[HomeCycleModel class],
             @"workarea_list":[WorkAreaModel class],
             @"notice_list":[NoticeModel class],
             @"alert_list":[WarnModel class],
             @"news_list":[NewsDirModel class],
             @"video_history_list":[HomeVideoHistoryModel class],
             };
}
@end
